All Questions
Tagged with command-linelinux
1,036 questions
1vote
3answers
88views
how do you remove spaces in email addresses using sed?
I have a file with thousands of email addresses with a space inside the email address that shouldn't be there... (example Aaliyah, Graves: Graves [email protected]) as pictured above... I'd like to ...
-1votes
1answer
613views
How to modify a Windows ISO image on Linux?
I am using Ubuntu. I have a Windows 10 consumer ISO image and I want to modify the ISO to remove all editions from it but keep the Pro edition and that will be in index 4, and need to do all that work ...
0votes
1answer
162views
Find MAC addresses of connected Wii Remotes
I want to connect one or more Wii remotes for reading their inputs. From the output of cat /proc/bus/input/devices I can extract data like Sysfs and the input Handlers. The Handers information I use ...
1vote
0answers
36views
Going to the direcory of a file as fast as posible [duplicate]
Is there a way to get to the path of a file as fast as possible and in the least amount of keystrokes. Context: Type cd and then paste the path of a file and then have to go back and hit backspace ...
0votes
1answer
45views
Could linux give clearer error messages to distinguish files from directories?
mkdir temp mkdir: cannot create directory ‘temp’: File exists rm temp/ rm: cannot remove 'temp/': Is a directory Is there any reason why the first error message should not be "Directory exists&...
-2votes
1answer
51views
Is there a port of the Windows' REN command for Unix-like operating systems? [duplicate]
I already know the rename command in GNU/Linux. However, it is very complicated and cumbersome because it uses regular expressions. For example, in Windows, I can simply rename files in bulk by typing:...
12votes
2answers
5kviews
Check if current user can run sudo without requiring a password
I want to check if the current user running a BASH shell script has access to passwordless sudo or not. If they don't, I'd rather have the script exit rather than prompting them for a password.
1vote
0answers
327views
Bash terminal lagging one input behind
After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen. Specifically, if I were ...
1vote
4answers
297views
Zip all files in directory to multiple independent outputs
I am trying to zip all files in a single directory into multiple independent output zip files. What I mean by this is that I do not want to produce a split archive; rather I would like multiple zip ...
0votes
0answers
77views
apt cache for live build
How can I cache all internet files when building with live-build? lb config --cache true --cache-packages true --cache-indices true does not work (see the last section of the build script and log). ...
0votes
0answers
36views
Difference in live usb and base
I have booted into the official Debian live USB with debian-live-12.5.0-amd64-gnome.iso. I have changed a few settings (for example, enable touchpad's tap-to-click in system settings and Firefox's ...
2votes
2answers
254views
Create FAT-formatted disk image that can fit 1G file
I'm struggling to create a FAT-formatted a disk image that can store a file of known size. In this case, a 1 GiB file. For example: # Create a file that's 1 GiB in size. dd if=/dev/zero iflag=...
3votes
1answer
190views
How to get display to show a pdf properly
When I do: display file.pdf it shows this: I can't resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming ...
0votes
0answers
28views
VirtualBox-Redtat 7.9
I'm using Apple Macbook and I have VirtualBox in it. within my Virtual Box I have RedHat 7.9 I need to make a USB drive that i'm connecting into my MacBook visible into redhat. what is the steps ...
0votes
2answers
262views
Check server's free and reserved CPU
I want to check the free and reserved CPU in a linux server. I found this command mpstat and below is the output: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle ...